import ajax from "@/utils/request";
import '../mock/homeMock'

// 获取轮播图
export function getBannerListFn(){
    return ajax({
        url:'/home/bannerList',
        method:'post',
    })
}

// 获取导航
export function getNavListFn() {
    return ajax({
        url:'/home/navList',
        method:'post',
    })
}

// 获取文章列表
export function getArticleListFn() {
    return ajax({
        url:'/home/articleList',
        method:'post',
    })
}

// 获取文章
export function getArticleFn(data){
    return ajax({
        url:'/home/article',
        method:'post',
        data
    })
}

// 获取对应标签数据
export function tagArticleListFn(data) {
    return ajax({
        url:'/home/tagArticleList',
        method:'post',
        data
    })
}